<?php
	include "basic.class.php";
	include "database.class.php";
	include "config.class.php";
	include "form.class.php";
	include "user.class.php";
	
	echo "vaiiiiii";
	$conf = config::getConfig();
	$form = new form($conf);
	$db = new database($conf);
	$user = new user($conf);
	$form->setDB($db);
	$user->setDB($db);
	//$form->getToken(5, 123, "ifi82");
	//var_dump($form->deleteToken("OIY3I4EQL929SZB6QGJ1"));
	//$form->addQuestion("Hallo...?");
	//$form->alterQuestion("Hallo, Du da....?", 1);
	//print_r($form->getQuestionById(1));
	//var_dump($form->deleteQuestion(2));
	//print_r($form->getQuestionsByForm(1));
	//$sAnswer = array("test","test2");
	//var_dump($form->saveAnswer('abcdefgh',2, 1, $sAnswer));
	//$form->createForm("Name", 1);
	//$form->isTeacherToken("de0b0da284312be10ed7");
	$user->addNewTeacher("Wasmuth");
	//$user->changeTeachersToken(5, "PASSWORT");
?>